package com.dd.keel.core.common.utils;


import java.text.DecimalFormat;

public class MathUtil {

	
	public static double round(double value, int scale)
	{
		String format = "#,##0.";
		for(int i=0; i<scale; ++i)
		{
			format += "0";
		}
		return Double.valueOf( new DecimalFormat(format).format(value) );
	}
	
}
